package cn.fzu.util;

import javax.swing.*;

/**
 * ClassName : cn.fzu.util.Tools
 * Desc : TODO
 *
 * @author : LINPQ
 * @date : 2021/3/27 15:07
 */
public class Tools {
    public static int rows = 9;
    public static int cols = 9;
    public static int totalMine = 10;
    public static ImageIcon iiFlag=new ImageIcon("./picture/flag.gif");
    public static ImageIcon icon=new ImageIcon("./picture/icon.gif");

    public static ImageIcon iiMine=new ImageIcon("./picture/mine.gif");
    public static ImageIcon iiblank=new ImageIcon("./picture/blank.gif");
    public static ImageIcon iiblood=new ImageIcon("./picture/blood.gif");
    public static ImageIcon iiAroundCount[];
    public static ImageIcon iiCount[];
    public static ImageIcon iiFace[];
    public static ImageIcon iiMinePicture[];
    public static int time=0;
    public static ImageIcon iiAsk=new ImageIcon("./picture/ask.gif");
    public static ImageIcon iiAsk1=new ImageIcon("./picture/ask1.gif");
    public static String heroLowTime="999秒",heroMidTime="999秒",heroHighTime="999秒",
            heroLowName="匿名",heroMidName="匿名",heroHighName="匿名";
    public static String dialogText="匿名";
    public static int level=1;
    public static ImageIcon diuren=new ImageIcon("./picture/diuren.gif");
    public static ImageIcon win=new ImageIcon("./picture/win.gif");
    static{
        iiCount=new ImageIcon[11];//静态块的雷数和时间数
        for (int i = 0; i <iiCount.length; i++) {

            iiCount[i]=new ImageIcon("./picture/d"+i+".gif");
        }
        iiFace=new ImageIcon[10];//笑脸图标
        for (int j = 0; j < iiFace.length; j++) {
            iiFace[j]=new ImageIcon("./picture/face"+j+".gif");

            iiMinePicture=new ImageIcon[9];//问号 雷各种图片
            for (int n = 0; n < iiMinePicture.length; n++) {
                iiMinePicture[n]=new ImageIcon("./picture/mine"+n+".gif");
            }
            iiAroundCount=new ImageIcon[9];//雷数
            for (int m = 0; m < iiAroundCount.length; m++) {
                iiAroundCount[m]=new ImageIcon("./picture/"+m+".gif");
            }
        }
    }

}
